home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / apps / 405 / diary18 / diary_18.txt < prev    next >
Text File  |  1990-03-09  |  25KB  |  470 lines

  1. DIARY.ACC & EdHak.ACC Versions 1.8                     3/5/90
  2. ----------------------------------
  3. DIARY has a new big brother called EdHak.  This documentation is for
  4. both of these, and any references to DIARY also apply to EdHak.  The reason
  5. for having these two versions is so that anyone who JUST wants an editor to
  6. safely edit files can have it, while those of us who want the ability to
  7. edit ANYTHING can have that.  EdHak is exactly the same as Diary, but has
  8. the two added features of (1) being able to edit disk sectors (with which
  9. you could ruin your hard drive or floppies by changing the boot sector,
  10. FAT, or directory), and (2) being able to edit your ST's memory (which can
  11. merely cause bombs on your screen). 
  12.  
  13. To Registered users receiving this on a disk in the mail:  The 'R' on the
  14. end of the 1.8R means this version is for you.  It is not to be made
  15. available for download anywhere, and I would appreciate it if you want to
  16. share Diary with anyone, that you give them the standard DIARY_18.ACC,
  17. also included on the Diary disk.  Your v 1.8R has been personalized for
  18. you (take a look at the Help screen).  Also, it (a) has the New
  19. Configuration feature enabled and (b) defaults to non-display of the 'cr'
  20. at the end of lines and allows you to toggle that display on and off with
  21. Ctl-Return.
  22.  
  23. I think Diary has become a fairly mature piece of software, as well as
  24. including some unique features.  Therefore, I am starting to request $10
  25. for registration from people who have not previously registered.  See
  26. information below on what all you get for registering.
  27.  
  28. New for Version 1.8     (3/5/90)
  29. -------------------
  30. 1)  Much faster text output for those who don't use TurboST or QuickST
  31. (learning assembly language is FUN, hah!).
  32.  
  33. 2)  Word wrap when a line has no spaces now doesn't stick carriage return
  34. characters in the middle of the line. 
  35.  
  36. 3)  Now compatible with Quick ST (text output bypasses QuickST), but you
  37. will still see improvements in scrolling when using either QuickST or Turbo
  38. ST.  Also note that Darek Mihocka has now fixed the bug in QuickST that
  39. caused the cursor to do weird things in earlier versions of Diary (and
  40. some other programs) when using TOS 1.0.
  41.  
  42. 4)  Shift-ClrHome from the top page now acts just like ClrHome, rather than
  43. letting the cursor stay wherever it was.
  44.  
  45. 5)  The headers that go above the file selector box have been shrunk to
  46. fit above the Universal Item Selector III (not really necessary since UIS
  47. III can be moved down, but I did it anyway).  I also re-worded the headers
  48. to be more consistent and not make you think that Diary could only handle
  49. text files.
  50.  
  51. 6)  When you re-open the Diary window, the cursor is now right where you
  52. left it, rather than going to the bottom of the window.
  53.  
  54. 7)  Added 2nd menu so all keyboard commands are fairly accessible by mouse.
  55.  
  56. 8)  Set right wrap column. ( Alt > )
  57.  
  58. 9)  Set left print margin. ( Alt < )  This just inserts spaces when
  59. printing.
  60.  
  61. 10) Set tab spacing. (Alt-Tab)  All tabs still have the same spacing
  62. between them.
  63.  
  64. 11) Insert current date at cursor. (Alt-D)  This assumes you have your
  65. ST's date set.
  66.  
  67. 12) Line & column display in text mode; 'n' & hex character display only in
  68. hack mode.  The 'n' means how many bytes (characters) you are from the top
  69. of the buffer -- this could also be called the offset.  The first
  70. character is therefore number zero.
  71.  
  72. 13) Notices like Insert/Overwrite are now shown at their own location in
  73. high and medium resolution.
  74.  
  75. 14) MACROS !!  ( 10 of them, 80 chars each )
  76. First select a block with the function keys or the mouse, then save to a
  77. function key with Cntrl-FuncKey; then when you want to insert that macro,
  78. hit Alt-FuncKey.  Using the menu entry for macros first displays all ten
  79. macros, one per line.  Note that if you want the macros to still be there
  80. after rebooting, you need to save the configuration, which requires a
  81. registered version of Diary.
  82.  
  83. 15) Config file (Alt-New config)  User-alterable buffer size finally!
  84. (4-64K)   (Saving a new config is available only to registered users.)
  85. This first shows your current status and settings:  buffer size/used,
  86. margins, tabs, end of line character, insert/overwrite mode, case
  87. sensitivity in search, wrap on/off mode, text/hack mode, current path and
  88. filename, and macros (display of the macros is truncated to what will fit
  89. on one line).  You are then given the option of changing the buffer size,
  90. but this does not take effect until you reboot (or reload into Multi-Desk).
  91. Then you are asked if you want to save that whole configuration.  Note that
  92. everything except the buffer size gets saved to a DIARY.CFG file, while the
  93. buffer size gets written into the DIARY_18.ACC file itself.  It must be
  94. done this way for acc's to be able to safely allocate the proper amount of
  95. memory.  Other desk accessories that use a more typical method of
  96. allocating memory (dynamic allocation using a Malloc call) are not handled
  97. properly by TOS and will steal gobs of extra ram if you ever try switching
  98. between low and medium resolutions, because TOS does not deallocate that
  99. ram before allocating it again, (for instance Notepad and at least the demo
  100. version of STeno).
  101.  
  102. NOTE:  The file must be named its original name (e.g., DIARY_18.ACC, or
  103. EDHAK18R.ACC) for it to be found for writing the new buffer size.  However,
  104. I realize you may have reasons to name it something else, such as if you
  105. want to have two copies of it loaded at the same time, or different copies
  106. with different buffer sizes.  To do this, just rename it AFTER you have
  107. saved the desired buffer size to it.
  108.  
  109. 16) Fixed block print error introduced in 1.8A.
  110.  
  111. 17) Fixed vertical slider positioning after a merge.
  112.  
  113. 18) Fixed it so moving a window over a highlighted block does not highlight
  114. over that other window.
  115.  
  116. 19) Esc character can now be output with Alt-Esc as well as the normal
  117. Cntrl-[ (which puts out ASCII character #27, just like cntrl-A puts out
  118. ASCII #1 and cntrl-Z puts out ASCII #26).  This is useful for putting in
  119. printer control codes -- see section on Printing below.
  120.  
  121. 20) Fixed bugs in using mouse to select a block while scrolling.
  122.  
  123. 21) Opening Diary with the mouse positioned right where the 'Menu' button
  124. is now draws the whole window properly.
  125.  
  126. 22) Compatibility with Flash is now almost perfect:  Opening up Diary now
  127. almost always draws the window fully (and when it doesn't it's no big deal
  128. since just resizing the window fixes it).  And if you go to Flash's on-line
  129. mode without exiting Diary, you can now return to Diary without crashing
  130. (after getting back to Flash's edit window, of course).  That one took a
  131. couple entire weekends of work to figure out, and I caution you not to try
  132. that with any other text editor accessories or any accessory that opens a
  133. window (such as the Atari control panel).  Finally, the cursor position
  134. does not now get screwed up when going back and forth between Diary and
  135. on-line mode.
  136.  
  137. The research I did for this stuff also resulted in some changes to make
  138. Diary much better able to deal with opening/closing any application with
  139. the Diary window open.  I'd like to hear if you find a program with which
  140. this doesn't work.
  141.  
  142. 23)  Diary now lets you know if it ran out of disk space while trying to
  143. save a file.
  144.  
  145. 24)  Fixed bug that wouldn't let you undo a deletion of the very first
  146. character in the buffer right after bootup.
  147.  
  148. 25)  Insert byte string (Alt-I).  This is for direct entry of all 256
  149. characters.  To enter ones above ASCII #127 you need to enter their hex
  150. values (unless you know some key combination that I don't that will do
  151. it!).  For instance, to get the trademark symbol (little 'TM') on the
  152. screen, you need ASCII #191 (decimal) which is $BF in hex.  Don't expect
  153. your printer to output a 'TM' though.  On my printer, character #191 is
  154. an italics question mark.
  155.  
  156. Note that here and anywhere a string is to be entered, such as for
  157. search/replace, entering hex byte values gives access to all 0-255 possible
  158. characters.  Hex digits must be entered in pairs or the string will be
  159. interpreted simply as a string of characters rather than hex values.
  160.  
  161. 26)  AutoLoad a file  (Available only to registered users, since it
  162. requires saving a new configuration)
  163. This option allows you to specify a file for Diary to load into its buffer
  164. automatically upon bootup, so when you open Diary the file is already there
  165. without you having to go find and open it.  This is especially useful if
  166. you are always editing or appending to the same file such as a diary.  You
  167. set this up by:  (a) load the file of interest into the buffer, then (b) go
  168. to New Config (Alt-N), and (c) click through the screens until you are
  169. asked if you want to AutoLoad the current file, and finally (d) click on
  170. Yes.  The full path and filename get saved to the DIARY.CFG file along with
  171. the rest of the current configuration (assuming you tell it to really save
  172. the configuration when it asks).  If it can't find the specified file upon
  173. bootup, it just skips over that routine and no harm is done.
  174.  
  175. Features available in EdHak that are not in Diary:
  176.  
  177. 27)  View/Edit RAM  (Alt-V)
  178. Yes, you can load any part of your ST's memory into the edit buffer, either
  179. by searching for a sequence of characters or by choosing which specific
  180. block of memory to load.  Then you can edit it, save it to a file, or even
  181. write it back RAM in its original or some other location.  Hack away!  but
  182. don't complain to me if your machine crashes after you change something in
  183. RAM.  The RAM you can access includes addresses from zero up to whatever
  184. your operating system thinks is the top of physical RAM (phystop).  This
  185. includes all the system variables, screen ram, etc.  However, with the
  186. ramdisk I use (Eternal2), phystop is lowered to fit the ramdisk above it,
  187. so phystop becomes lower than the actual top of physical ram.  To get to
  188. that RAM in a ramdisk you can use the disk editing feature described below.
  189.  
  190. 28)  You can now use Diary's big brother, 'EDHAK.ACC' as a disk sector
  191. editor!  To do this, start as if you were going to open a file, but leave
  192. the filename part of the item selector empty and just specify which drive
  193. you want.  Then open it and you will be asked which sector to start reading
  194. from.  Sector zero is the boot sector, and this is followed by two copies
  195. of the FAT (file allocation table), then the root directory, and finally
  196. the actual file data.  Unless you are using a very strange format for your
  197. drive (i.e., something not supported by GEM), files are stored in 1K chunks
  198. called 'clusters' each of which consists of two 512-byte 'sectors'.  Diary
  199. will load as many sectors as will fit into the buffer and still leave you a
  200. couple K to add to it, just as if you had loaded part of a file that was
  201. too big for the buffer.  If you don't know anything about disk structure,
  202. do NOT try saving this back directly to disk sectors.  If you want to save
  203. it as a file, then give it a filename and all will be safe.  If you DO know
  204. what you are doing, then this disk editing feature provides some different
  205. options from anything you are likely to find in a typical disk/sector
  206. editor, since you can view/edit more than one sector at a time, toggle into
  207. text mode, insert, append to files, etc.
  208.  
  209.  
  210. Known Bugs
  211. ----------
  212. 1)  When word wrapping an existing paragraph (i.e., reformatting it) if a
  213. sentence ends with a period at the end of a line followed immediately by
  214. the carriage return, only one space will be put after the period if it ends
  215. up elsewhere on a line due to the wrap.  To be fully correct it would need
  216. to put two spaces after the period, but I have not even tried dealing with
  217. that yet.
  218.  
  219. 2)  Someone mentioned to me that they saw Diary do something weird when
  220. called from ST Writer (in medium resolution).  The window opened up LESS
  221. than half a screen.  Some confirmation of whether this actually happens
  222. and any more information would be helpful.
  223.  
  224. Next Feature(s)
  225. ---------------
  226. I plan to add the ability to search large disk files (infinitely large)
  227. and disk sectors to find which part you want to load into the buffer.  The
  228. routines to do this would also let me change the Encryption feature to
  229. work on a whole file of any size, rather than just what will fit into the
  230. buffer (which has limited the encryption capability to the buffer size so
  231. far).  I'm currently working on speeding up the search routine (translating
  232. into assembly code) since searching through a couple megabytes of ram
  233. currently takes a long time (about a minute or so).
  234.  
  235. I plan to make .PRG versions of both of these, possibly allowing the user
  236. to change it by just changing the extender.  Also an updated 'S'tripped
  237. accessory version for absolute minimum memory use will be available soon.
  238.  
  239.  
  240. UPGRADES
  241. --------
  242. Registered users can always get the latest version by sending me $2 (or
  243. more) to cover my cost of disk and mailing.  I will send a post card to all
  244. registered users to let you know whenever I come up with a new version. 
  245. The version available to non-registered users will always have some
  246. feature(s) disabled.  For instance, non-registered users will always have
  247. to live with the 'cr' character at the end of the lines, and you can not
  248. save a new configuration.  I don't consider these major, but just a little
  249. added incentive to register.
  250.  
  251. Some possibilities for the future
  252. ---------------------------------
  253. 1)  Maybe create my own sliders/arrows that repeat (the GEM ones don't
  254. without TOS 1.4).
  255.  
  256. 2)  I MAY eventually see about making the drop-down menu items highlight as
  257. you move the mouse over them.  But I consider that basically a cosmetic
  258. improvement, and I'm not much into putting effort into cosmetics.
  259.  
  260. 3)  Make the desktop directory windows update themselves when a file is
  261. saved from Diary.  For now you have to hit Escape after leaving Diary to
  262. get the window updated.  (Just as is true with Universal Item Selector).
  263.  
  264. 4)  Deal directly with files with other end-of-line characters (e.g., just
  265. LF).  For now you have to do a full search/replace to change some other end
  266. of line character sequence into CR/LF to use Diary in its text mode.
  267.  
  268. 5)  One person suggested adding a little picture drawing feature...
  269. That could be a fun can of worms for me to get into!... but since there is
  270. now an accessory called MultiPaint available on various BBS's, I don't plan
  271. on getting into that area in the foreseeable future.
  272.  
  273.  
  274. INTRO FOR THOSE NEW TO DIARY
  275. ----------------------------
  276. You can always hit the Help key or use the drop-down menu if you don't
  277. know what you're doing.
  278.  
  279. This program is simply a text editor accessory that opens up a half-screen
  280. window which you can move up or down on your screen, and toggle between
  281. full and half size.  Being a desk accessory, it is available from within
  282. any other GEM program that has a menu bar, so you can get to it whenever
  283. you want to jot something down or view or make changes in a file without
  284. going to get your favorite word processor or disk sector editor.  Unless
  285. you register and get the version that allows saving a new configuration,
  286. the text buffer is limited to 10K of data, which it allocates all at
  287. once when you boot up.  Any text in the buffer stays there until you Clear
  288. it or reboot, regardless of whether you have the Diary window open. 
  289. In Text mode, Diary deals strictly in text with the standard CR/LF at the
  290. end of each line, but in 'Hack' mode it can handle anything.  It only
  291. displays the 'cr' but the line feed is still there.  If you are editing
  292. something other than text, just turn off the word-wrap before doing
  293. anything else or switch to Hack mode.
  294.  
  295. If you cover up the Diary window by clicking on a desktop or application
  296. window, you can get back to Diary either by clicking on any visible part
  297. of the Diary window (if any is still showing) or by going to the desktop
  298. desk accessory menu and clicking on Diary as if you were opening it.  In
  299. all the cases I've tested, it is OK to open or close an application when
  300. the Diary window is open.  It just causes the window to close, and you can
  301. then re-open it as usual.
  302.  
  303. One slightly strange thing in Diary is the simple little drop down menu
  304. within the Diary window.  The items don't highlight as in a normal menu
  305. (since I couldn't justify the added program size and programming hassle to
  306. accomplish this), but the menu goes away just by moving the mouse outside
  307. the menu without having to click again.
  308.  
  309. If you have less available RAM than needed for the normal versions of
  310. Diary, but still want some way to do simple text editing, a stripped
  311. version of Diary called DIARY17S.ACC is available that only takes up 38K of
  312. ram (compared to about 70K for the full version 1.8).  This was
  313. accomplished by decreasing the buffer size to 4K and removing a number of
  314. features, most notably the word wrap and all block functions.
  315.  
  316. Word Wrap  (Alt-W, F10, Wrap...)
  317. --------------------------------
  318. I should probably explain a little about the Turn Off/On button in the Wrap
  319. selection box.  With Wrap turned On, Diary will word wrap to a default line
  320. length of 75 characters, plus the CR/LF for a total of 77 (or 64 if in
  321. 'Hack' mode, or appropriately shorter lengths in low resolution).  This
  322. length can be changed with the Alt- '>' command.  Word wrap occurs
  323. automatically when adding to the end of your text and you hit the word wrap
  324. column, or when inserting text in a line that reaches the wrap column. 
  325. With Wrap turned Off, you can create/edit lines of any length (within the
  326. 10K limit for the whole buffer, of course).  Regardless of whether Wrap is
  327. turned on or off, you can always force a wrap (reformat of paragraph, line,
  328. or whole buffer) with the Wrap! button of the dialog box (F10 or Alt-W).
  329.  
  330. Block Cut/Paste and Delete functions 
  331. (Alt-B, F1-F5, Delete, Shift-Delete, UNDO)
  332. ------------------------------------------
  333. The buffer that is used to hold cut blocks and deleted lines and characters
  334. is not very large.  It is equal to 1/8 the size of the edit buffer (1280
  335. bytes in the case of the normal 10K buffer).  Deleting a line (or multiple
  336. lines or characters in sequence) has the same effect as doing a block cut
  337. of them.  It is similar to the Flash editor in that after deleting, you can
  338. paste it back any number of times wherever you want.  So to do a block
  339. copy, you first cut, then paste at the same location, and finally paste
  340. where you want the copy to be.  The Undo key does the same thing as F5
  341. (paste).  Note that doing multiple backspaces only puts the last character
  342. deleted into the paste buffer.  
  343.  
  344. Extended lines  (longer than one window width)
  345. --------------
  346. Be sure to turn off Wrap before trying to edit a line that extends beyond
  347. the first window, unless you want it to wrap when you hit the end of the
  348. second (or later) window.  Simply moving the cursor with the arrow keys
  349. beyond the furthest left or right columns of the window will move you to
  350. the next or previous section of the line.  Shift-left or right arrow takes
  351. you to the start/end of the line, no matter how far over it is.  Another
  352. command, Control-arrow, takes you just to the left or right edge of the
  353. current window.  Clicking with the mouse by the edge of the window will
  354. also take you to the next/previous section of the line.
  355.  
  356. One interesting thing you can now do with wrap turned off is to use Diary
  357. instead of a sector editor to Find and then change text strings in PRG,
  358. TOS, or any other file.  Just be careful not to change the length of them!
  359.  
  360. Tabs
  361. ----
  362. In insert mode, the tab key inserts whatever number of spaces you have it
  363. set for (default is 5).  In overwrite mode, it skips over that number of
  364. spaces rather than erasing anything.  I figured it would be more useful
  365. that way for editing existing tables.
  366.  
  367.  
  368. Files larger than the Diary buffer or
  369. even larger than your ST's total memory!
  370. (or when is 10K equal to 100 megs?)
  371. -----------------------------------
  372. Despite Diary's small (default of 10K) text buffer size, it will handle ANY
  373. size file by loading in only a portion of the file that you want.  It is
  374. "limited" to the first 99 megabytes, just because the biggest number the
  375. dialog box lets you enter is 99999.  If anyone finds this to be a
  376. limitation, let me know!  Block zero is the first 8K block of the file, and
  377. the dialog box will allow you to go up to a block starting at about 1K from
  378. the end of the file, which would give you over 8K of free space to add text
  379. to the end of the file.  When you go to save the file, Diary will take care
  380. of stringing together the text from the original file with the block of it
  381. that you edited to create a new file.  This means that it won't overwrite
  382. the latest version of the original on disk, since it needs that to create
  383. the new version to be saved.  For you power users this also means that you
  384. should be careful if you have two copies of Diary or Diary plus another
  385. editor running at the same time, not to make changes in the same document
  386. on disk or in both windows of Diary, and then expect to be able to save a
  387. complete file from both.
  388.  
  389. Since you can only load an 8K block of a file that is bigger than 10K, it
  390. will require more work to do some things, like doing a cut/paste from the
  391. end of a big file to its beginning.  To do such a thing you would need to
  392. first save the file after the Cut, then read in the other portion of the
  393. file, and finally do the Paste.  Or to handle a block larger than the
  394. paste buffer size, you can first save the block to disk and then use the
  395. Merge feature to paste it at the desired location.  
  396.  
  397. Printing   (Alt-P)
  398. --------
  399. This allows either printing the whole buffer or just a marked block.  Note
  400. that you can send any printer control codes you want to set left margin,
  401. bold, near letter quality, or any other things your printer can do.  All
  402. you have to do is look at your printer manual to find out what codes do
  403. what.  For example, on my printer (which is pretty much Epson compatible)
  404. the code to set the left margin is esc-'l'-'x', where x is the number of
  405. spaces over to set the margin.  To get the escape character, just type
  406. Control-[.  Then type lowercase L.  Then type Control-E to set a left
  407. margin of 5, since E is the fifth letter of the alphabet (don't worry
  408. about the funny character that appears - that's just what the ST uses for
  409. displaying this control code which is normally non-printable).
  410.  
  411. REGISTRATION
  412. ------------
  413. Incidentally, if you find yourself using this on any sort of regular
  414. basis, it is shareware, and I'd be most appreciative of something in
  415. return for my year of effort.  For the $10 registration I would gladly
  416. provide custom versions with different ALT-key and function key
  417. assignments.  Registration will also get you more complete documentation,
  418. IF you request it.  I am also very interested in suggested improvements,
  419. bug reports, etc.  Further improvements are expected, and registering will
  420. reward you with a more full-featured version than is available for
  421. download.  If you use Diary, but don't feel that it is worth $10 to you,
  422. send me $5 and any suggested improvements, and I will still register you.
  423. Registering either Diary or EdHak gets you registered for both.
  424.  
  425. The Modula-2 source code for the initial version exists as a different
  426. file earlier in the ST downloads, and I'd happily provide source to this
  427. and later versions to any registered user.
  428.  
  429. Feel free to distribute Diary to friends, BBS's etc, but please also
  430. include this documentation file.  Oh, and how about a disclaimer:
  431. This software and documentation have no warranty of anything.  You use it
  432. at your own risk.  I use it myself all the time, but since I can not
  433. possibly check it out with every hardware/software set up out there, I can
  434. only offer to try to fix any bugs that you find and report to me.
  435.  
  436. DIARY.ACC & EDHAK.ACC version 1.8, copyright 1990 by
  437.  
  438. Craig Harvey
  439.  
  440. GEnie:      c.harvey
  441. CompuServe: 73047,600
  442.  
  443. Clear Thinking, BBS: 313-761-2444    P.O. Box 715  Ann Arbor, MI  48105
  444.  
  445.  
  446. THANK YOU  ( Those who have registered )
  447. ---------
  448. James Kleiser
  449. James Conway
  450. Robert Wenham
  451. Clayton Hardiman
  452. Kenneth Ledgard, D.D.S.
  453. Warren Tryk (Hired Hand Graphics)
  454. Chet Walters
  455. J. Philip Arno
  456. (new since last release:)
  457. John Rosenberg
  458. Patrick McShane (PCS School for Advanced Learning)
  459. William Nelson
  460. Frederick Dickey
  461. Terry Lee West
  462. Edward Williams
  463. Russ Crum
  464. Joseph Meehan
  465. Jimmy Johnson
  466. Ron Robinson
  467. Dr. Alfredo Gonzalez
  468. Barry Bradfield
  469. John Anderson (EMU Ski Club)
  470.